<?php

namespace App\Service\Index;

use App\Model\FeedBack;
use App\Service\BaseService;

/**
 * 意见反馈
 */
class FeedbackService extends BaseService
{
    protected function RoVerifyList()
    {
        return [
            'content' => 'required|string',
            // 'pics' => '|string'
        ];
    }

    public function handle()
    {
        $content = $this->request->input('content', '');
        $pics = $this->request->input('pics', '');
        FeedBack::addRecord($this->getUserId(), $content, $pics);
        return ['result' => 1];
    }
}
